package zh.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zh.demo.dao.VcardOperationLogDao;
import zh.demo.model.VcardOperationLogEntity;

import java.util.List;
import java.util.Map;

@Service("vcardOperationLogService")
public class VcardOperationLogService {
	@Autowired
	private VcardOperationLogDao vcardOperationLogDao;
	
	public VcardOperationLogEntity queryObject(Long id){
		return vcardOperationLogDao.queryObject(id);
	}
	
	public List<VcardOperationLogEntity> queryList(Map<String, Object> map){
		return vcardOperationLogDao.queryList(map);
	}
	
	public int queryTotal(Map<String, Object> map){
		return vcardOperationLogDao.queryTotal(map);
	}
	
	public void save(VcardOperationLogEntity vcardOperationLog){
		vcardOperationLogDao.save(vcardOperationLog);
	}
	
	public void update(VcardOperationLogEntity vcardOperationLog){
		vcardOperationLogDao.update(vcardOperationLog);
	}
	
	public void delete(Long id){
		vcardOperationLogDao.delete(id);
	}
	
	public void deleteBatch(Long[] ids){
		vcardOperationLogDao.deleteBatch(ids);
	}
	
}
